package com.liukai.bishe.model.doman.transaction;

public class TransactionMessage {

    private Transaction transaction;

    private String code;

    public TransactionMessage(String code) {
        this.code = code;
    }

    public TransactionMessage(Transaction transaction, String code) {
        this.transaction = transaction;
        this.code = code;
    }

    public TransactionMessage() {
    }

    public Transaction getTransaction() {
        return transaction;
    }

    public void setTransaction(Transaction transaction) {
        this.transaction = transaction;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "TransactionMessage{" +
                "transaction=" + transaction +
                ", code='" + code + '\'' +
                '}';
    }
}
